package com.gongzhiyun.springboot3test.entity.novel;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("novel_reading")
@Schema(description = "小说阅读记录表")
public class NovelReading implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "主键", example = "1")
    private Integer id;
    @Schema(description = "用户id", example = "1")
    private Integer userId;
    @Schema(description = "小说id", example = "1")
    private Integer novelId;
    @Schema(description = "章节id", example = "1")
    private Integer chapterId;
    @TableField(updateStrategy = FieldStrategy.NEVER)

    @Schema(description = "最后阅读时间", example = "2023-05-01 12:00:00")
    private Date lastReadTime;
}
